

import 'package:web_socket_channel/io.dart';
import 'package:web_socket_channel/web_socket_channel.dart';

class Client {
  final String ws;
  WebSocketChannel channel;


  Client(this.ws);

  void open() {
    this.channel = IOWebSocketChannel.connect(this.ws);
  }

  void close() {
    this.channel.sink.close();
  }

}